package com.neusoft.springboot02.controller;

import com.neusoft.springboot02.domain.T_item;
import com.neusoft.springboot02.service.T_itemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class T_itemController {

    @Autowired
    private T_itemService t_itemService;

    @GetMapping("/getItems.do")
    public List<T_item> query_titems()
    {
        return t_itemService.query_items();
    }

    @GetMapping("/getItems01.do")
    public List<T_item> query_titems001()
    {
        return t_itemService.query_items001();
    }
}
